<?php
    $title="品牌介绍";
    //require_once $_site->get_viewpath("wap/commom/header");
    require_once $_site->get_handlepath("info");
    $type = request('type',false,true,false,1);
    $typeval=array(1=>'公司介绍',2=>'公司荣誉',3=>'战略发展');
    $hover[$type] = "class='hover'";

    switch ($type){
        case 1:
            $single = info_fun_get_info_by_id(0,83);

            break;
        case 2:

            $single = info_fun_get_info_by_id(0,149);

            break;
        case 3:

            $single = info_fun_get_info_by_id(0,150);

            break;
        default:
            $single = info_fun_get_info_by_id(0,83);
    }

?>
<?php require_once $_site->get_viewpath("wap/commom/head");?>

<body>
<div class="tittle">
      <a href="javascript:window.history.go(-1);" class="arrow_carrot-left return"></a>
	  <?php echo $title?>
	  <a href="/wap/index" class="icon_house house" style="vertical-align:middle;"></a>
</div>
<div class="nav">
            <a <?php echo $hover[1];?> href="/wap/intro&type=1"><?php echo $typeval[1];?></a>
            <a <?php echo $hover[2];?> href="/wap/intro&type=2"><?php echo $typeval[2];?></a>
            <a <?php echo $hover[3];?> href="/wap/intro&type=3"><?php echo $typeval[3];?></a>
</div>

<div class="newspage">
	<div class="newspage_top"><span><?php echo $typeval[$type];?></span></div>
    <div class="news_bottom" style="margin-top:20px;">
	
	        <?php 
                preg_match_all('/<\s*img\s+[^>]*?>/i',$single['content'],$matchs); //   提取出图片的正则 
                if($matchs[0] && !empty($matchs[0])){
                    echo "<p style='float: left; width: 100%;'>";
                    foreach($matchs[0] as $val){
                        echo $val;
                    }
                    echo "</p>";
                }
                $str = preg_replace('/<\s*img\s+[^>]*?>/i','',$single['content']); 
                echo htmlspecialchars_decode($str);
        ?>

     </div>
</div>

    <?php require_once $_site->get_viewpath("wap/commom/bottom");?>
	
</body>
</html>
